##################################################################################################
# Data Analysis Code Project for the External Target Facility, CSR-HIRFL, @IMP
#
# CMakeLists.txt for compilation of object files and dynamically-linked libraries.
#
# Created Time: 2020/08/30
# Author: SUN Yazhou, asia.rabbit@163.com
# Last Modified: 2017/10/03, SUN Yazhou
##################################################################################################

include_directories(inc)
include_directories(../fci/inc)
aux_source_directory(src LIB_SRCS)
set(target momd)

add_library(${target} SHARED ${LIB_SRCS})
target_link_libraries(${target} yaml-cpp)
if(ROOT_FOUND)
  target_link_libraries(${target} ${ROOT_LIBRARIES})
endif()
if(OpenCV_FOUND)
  target_link_libraries(${target} ${OpenCV_LIBRARIES})
endif()
